/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DCGTree;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Raito
 */
public class Node {
    String value;
    int index;
    Node nodeParent;
    List<Node> nodeChild;
    
    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public List<Node> getNodeChild() {
        return nodeChild;
    }

    public void setNodeChild(List<Node> nodeChild) {
        this.nodeChild = nodeChild;
    }

    public Node getNodeParent() {
        return nodeParent;
    }

    public void setNodeParent(Node nodeParent) {
        this.nodeParent = nodeParent;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
    
    public Node(){
        //nodeParent = new ParseTree();
        nodeChild = new ArrayList<Node>();
    }
    public Node(String s){
        nodeChild = new ArrayList<Node>();
        this.value = s;
    }
    public Node(int index){
        nodeChild = new ArrayList<Node>();
        this.index = index;
    }
    
    
    
}
